import request from '@/config/axios'
import {
  IUserListData,
  IUserImport,
  IUserExport,
  IUserManageListData,
  IExclusive,
  IAccountRole,
  IPutPassword,
  IPutPwdReset
} from './types';

const userBaseUrl = 'http://localhost:3000/api/public/'

/**
 * 获取学院列表
 */
export const fetchGetCollegeList = () => {
  return request.get({ url: `${userBaseUrl}getCollegeList` })
}

/**
 * 获取学院列表
 */
export const fetchGetMajorList = () => {
  return request.get({ url: `${userBaseUrl}getMajorList` })
}


/**
 * 获取年级列表
 */
export const fetchGetGradeList = () => {
  return request.get({ url: `${userBaseUrl}getGradeList` })
}